Revert "bpf: avoid false sharing of map refcount with max_entries"
authorYves-Alexis Perez <corsac@debian.org>
Fri, 2 Feb 2018 09:40:47 +0000 (10:40 +0100)
committerYves-Alexis Perez <corsac@debian.org>
Fri, 9 Feb 2018 12:58:52 +0000 (12:58 +0000)
commit40930c5acc213a9541806861342eb217ba0e9312
treeee643b5dd81b7c734e5fa4d1c7bc5f8a3531c77f
parent312d37d4b4d55a3eb8de937864a98ecd39a026da
Revert "bpf: avoid false sharing of map refcount with max_entries"

This reverts commit 5cb917aa1f1e03df9a4c29b363e3900d73508fa8 which is commit
be95a845cc4402272994ce290e3ad928aff06cb9 upstream. This commit heavily
modifies the bpf_map structure to split it on two cachelines and prevent
sharing reference counter with other, read-only fields in order to mitigate
Spectre attacks. This modification changes the ABI, so revert the mitigation
for now since the infrastructure is not yet complete for Spectre mitigation
anyway.

Gbp-Pq: Topic debian
Gbp-Pq: Name revert-bpf-avoid-false-sharing-of-map-refcount-with-.patch
include/linux/bpf.h